package com.googlecode.ozonbooksfinder.cairngormfinder.event
{
	import com.adobe.cairngorm.control.CairngormEvent;
	import com.googlecode.ozonbooksfinder.cairngormfinder.control.CairngormFinderController;
	
	import flash.events.Event;

	public class GetBooksEvent extends CairngormEvent
	{
		public var searchString:String;
		
		public var searchContext:String;
		
		public function GetBooksEvent(searchString:String, searchContext:String)
		{
			super(CairngormFinderController.EVENT_GET_BOOKS);
		 	this.searchString = searchString;
		 	this.searchContext = searchContext;
		}
		
		override public function clone():Event
		{
			return new GetBooksEvent(searchString, searchContext);
		}
	}
}